<?php
        echo $this->doctype();
        $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
        $usuario = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session("default"))->getStorage()->read();
        $usuario = $usuario->nome;
?>
<html>
	<head>
                <?php echo $this->headMeta(); ?>
                <?php echo $this->headTitle(); ?>
                <?php
                       echo $this->headLink()
                            ->prependStylesheet($this->baseUrl() . '/css/layout.css');

                       //$this->headScript()->appendFile($this->baseUrl() . '/js/jquery-1.3.2.min.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/jquery-1.5.2.min.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/easyTooltip.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/jquery-ui-1.7.2.custom.min.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/jquery.wysiwyg.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/hoverIntent.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/jquery.bestupper.min.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/superfish.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/custom.js');
                       $this->headScript()->appendFile($this->baseUrl() . '/js/maskedinput-1.3.min.js');


                       echo $this->headScript();
                ?>				
	</head>
	<body>
		
		<div id="container">

			
			<div id="header">

			
				<div id="top">
			
					<div class="logo">
						<a href="/" title="Administração" class="tooltip"><img src="http://benservi.com.br/sistema/interno/assets/logo.png" alt="Benservi" /></a>
					</div>
									
					<div class="meta">                                       
						<p><? echo 'Usuário: '.$usuario; ?></p>
						<ul>
							<li><a href="<?=$this->url(array('controller' => 'Auth', 'action' => 'logout'), '',true)?>" title="Terminar a sessão" class="tooltip"><span class="ui-icon ui-icon-power"></span>Sair</a></li>
							<li><a href="<?=$this->url(array('controller' => 'Usuario', 'action' => 'meusdados'), '',true)?>" title="Ir para a sua conta" class="tooltip"><span class="ui-icon ui-icon-person"></span>Minha conta</a></li>
						</ul>
					</div>					
				</div>
							
				<div id="navbar">
					<ul class="nav">
						<li><a href="/sistema/interno">Painel</a></li>
						<li><a href="/sistema/interno/ir">Imposto de Renda</a></li>
						<li><a href="/sistema/interno/boleto">Boletos</a></li>
                                                <li><a href="/sistema/interno/usuario">Usuário</a></li>
						<!--li><a href="tabs.html">Clientes</a></li>
						<li>
							<a href="">Multi Level Menu</a>
							<ul>
								<li><a href="">Menu Link 1</a></li>
								<li><a href="">Menu Link 2</a></li>
								<li><a href="">Menu Link 3</a>
									<ul>
										<li><a href="">Menu Link 1</a></li>
										<li><a href="">Menu Link 2</a>
											<ul>
												<li><a href="">Menu Link 1</a></li>
												<li><a href="">Menu Link 2</a></li>
												<li><a href="">Menu Link 3</a></li>
											</ul>
										</li>
										<li><a href="">Menu Link 3</a></li>
										<li><a href="">Menu Link 4</a></li>
										<li><a href="">Menu Link 5</a></li>
										<li><a href="">Menu Link 6</a></li>
									</ul>
								</li>
								<li><a href="">Menu Link 4</a></li>
								<li><a href="">Menu Link 5</a></li>
								<li><a href="">Menu Link 6</a></li>
							</ul>
						</li-->
					</ul>
				</div>												

			</div>
			<div id="bgwrap">

						
                                <?php echo $this->layout()->content; ?>				
				

			</div>
			
		</div>
		

		
		<div id="footer">
			<p class="mid">
				<a href="#" title="Topo" class="tooltip">Topo</a>&middot;<a href="/sistema/interno" title="Painel Administrativo" class="tooltip">Painel</a>&middot;<a href="<?=$this->url(array('controller' => 'Usuario', 'action' => 'meusdados'), '',true)?>" title="Minha Conta" class="tooltip">Minha Conta</a>&middot;<a href="mailto:gustavo@meredyk.com.br?subject=Suporte Benservi&body=Informe o seu nome e o problema identificado" title="Suporte" class="tooltip">Suporte</a>&middot;<a href="<?=$this->url(array('controller' => 'Auth', 'action' => 'logout'), '',true)?>" title="Terminar a sessão" class="tooltip">Sair</a>
			</p>
			<p class="mid">
				
                                &copy; <a href="http://www.meredyk.com.br">Gustavo Meredyk</a>. Todos os direitos reservados.

			</p>
		</div>
		


	</body>
</html>

